<script>
export default {
  name: 'HmFriend',
  created() {
    console.log('朋页面创建')
  },
}
</script>

<template>
  <div>
    <div class="box">朋友关注</div>
    <button @click="$router.push({ path: '/friend/child1' })">1</button>
    <button @click="$router.push({ path: '/friend/child2' })">2</button>
    <button @click="$router.push({ path: '/friend/child3' })">3</button>
    <router-view></router-view>
  </div>
</template>

<style scoped>
.box {
  width: 100%;
  height: 200px;
  background-color: skyblue;
  border: 10px;
}
</style>